package com.cwnu.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 用户实体
 * 跟数据库表中的结构要一一对应的
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户实体")
public class User {
    /*用户编号*/
    @ApiModelProperty("用户编号")
    private Integer userId;
    @ApiModelProperty("用户名称")
    private String userName;
    @ApiModelProperty("用户昵称")
    private String userNickName;
    @ApiModelProperty("用户密码")
    private String userPassword;
    private String userRealName;
    private Byte userGender;
    private Date userBirthday;

    /*private Address userAddress;
    private Address userHomePlace;
    private String userProfilePictureSrc;
    private List<Review> reviewList;
    private List<ProductOrderItem> productOrderItemList;
    private List<ProductOrder> productOrderList;*/
}
